#pragma strict


function OnGUI () {

	if (GUI.Button(Rect(100, 100, 500, 200), "Record")) {
	
		audio.clip = Microphone.Start(null, false, 5, 44100);
	}

	if (GUI.Button(Rect(100, 400, 500, 200), "Play")) {
	
		audio.Play();
	}
}